package io.renren.modules.sys.entity;

import io.renren.common.enums.Hard;
import io.renren.common.enums.SongType;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 * 
 * @author wangyi
 * @email 794651397@qq.com
 * @date 2018-02-24 10:46:32
 */
public class SongEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//id
	private Long id;
	//名称
	private String name;
	//作者
    private String author;
	//上传者姓名
	private String uploadUser;
	//上架时间
	private Date releaseTime;
	//难度
	private Integer hard;
	private String hardName;

	//难度
	private Integer type;
	private String typeName;
	//曲谱
	private String opern;
	//曲谱名
    private String opernName;
	//
	private Date createTime;
	//
	private Date updateTime;

	private Integer sort;

	private String img;

	private String introduce;

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getTypeName() {
		return SongType.getNameByValue(type);
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：名称
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * 获取：名称
	 */
	public String getName() {
		return name;
	}
	/**
	 * 设置：上传者姓名
	 */
	public void setUploadUser(String uploadUser) {
		this.uploadUser = uploadUser;
	}
	/**
	 * 获取：上传者姓名
	 */
	public String getUploadUser() {
		return uploadUser;
	}
	/**
	 * 设置：上架时间
	 */
	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}
	/**
	 * 获取：上架时间
	 */
	public Date getReleaseTime() {
		return releaseTime;
	}
	/**
	 * 设置：难度
	 */
	public void setHard(Integer hard) {
		this.hard = hard;
	}
	/**
	 * 获取：难度
	 */
	public Integer getHard() {
		return hard;
	}
	/**
	 * 设置：曲谱
	 */
	public void setOpern(String opern) {
		this.opern = opern;
	}
	/**
	 * 获取：曲谱
	 */
	public String getOpern() {
		return opern;
	}
	/**
	 * 设置：
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	/**
	 * 获取：
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getHardName() {
        return Hard.getNameByValue(hard);
    }

    public void setHardName(String hardName) {
        this.hardName = hardName;
    }

    public String getOpernName() {
        return opernName;
    }

    public void setOpernName(String opernName) {
        this.opernName = opernName;
    }
}
